import request from '@/utils/request'

//藏馆mon接口
export function pagingQuery(data) {
	return request({
		url: '/tibetanMuseum/pagingQuery/' + data.page + "/" + data.size + "?raceName=" + data.raceName +
			"&isHunting=" + data.isHunting + "&mature=" + data.mature + "&birthNumber=" + data.birthNumber,
		method: 'post',
	})
}

//藏馆mon详情接口
export function getmonDetail(data,isParents) {
	return request({
		url: '/tibetanMuseum/getDetail/' + data+"?isParents="+isParents,
		method: 'post',
	})
}

//藏馆mon取消寄售接口
export function cancelunConsignments(data) {
	return request({
		url: '/tibetanMuseum/unConsignments/' + data,
		method: 'post',
	})
}

//藏馆mon最低价
export function getPriceAscOne(data) {
	return request({
		url: '/tMarket/getPriceAscOne',
		method: 'get',
	})
}


//孵化
export function hatch(data) {
	return request({
		url: '/appBabymon/hatch/' + data,
		method: 'get',
	})
}
// mon寄售安全密码
export function getmonConsignment(id, data) {
	return request({
		url: '/tibetanMuseum/consignments/' + id + "?consignmentPrice=" + data.consignmentPrice +
			"&securityPassword=" + data.securityPassword,
		method: 'post',
		dataType: "multipart/form-data"
	})
}

//父母种族
export function getBreedTree(data) {
	return request({
		url: '/appBabymon/auth/getBreedTree/' + data,
		method: 'get',
	})
}
// 藏馆材料
export function getMemberMaterial(data) {
	return request({
		url: '/material/getMemberMaterial',
		method: 'get',
	})
}

// 藏馆饰品
export function getJewelry(data) {
	return request({
		url: '/tOrnament/getMemberIdOrnament',
		method: 'get',
	})
}